print function hackerrank solution in python

visit shbcf.ru